package cn.com.taurus.biz;

import cn.com.taurus.bean.DealMessageBean;
import cn.com.taurus.bean.DealMessageWebBean;
import cn.com.taurus.entity.DealMessage;
import cn.com.taurus.impl.DealMessageImpl;
import cn.com.taurus.service.DealMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 提交申请Biz层
 * @version 1.0
 */
@Service
public class DealMessageBiz{
    @Autowired
    DealMessageImpl dealMessageImpl;

    public Integer selectDmIdValue() {
        return dealMessageImpl.selectDmIdValue();
    }
    
    public int buyApplication(DealMessage dealMessage) {
        return dealMessageImpl.buyApplication(dealMessage);
    }

    
    public int buyApplicationUpdate(DealMessage dealMessage) {
        return dealMessageImpl.buyApplicationUpdate(dealMessage);
    }
    public List<DealMessageWebBean> selectDealMessageCaId(Integer caId){
        return dealMessageImpl.selectDealMessageCaId(caId);
    }
    
    public int buyApplicationDelete(Integer dmId) {
        return dealMessageImpl.buyApplicationDelete(dmId);
    }

    
    public List<DealMessage> buyApplicationSelectAll() {
        return dealMessageImpl.buyApplicationSelectAll();
    }

    
    public DealMessage buyApplicationSelectOne(Integer dmId) {
        return dealMessageImpl.buyApplicationSelectOne(dmId);
    }

    public List<DealMessageBean> conditionSelectDealMessage(String caId, String fId, String applyBuy, String applyTime,String time){
        return dealMessageImpl.conditionSelectDealMessage(caId,fId,applyBuy,applyTime,time);
    }
}
